import { buildDialog } from '@/util/dialog'

/**
 * 发送对话框
 * @param options
 *        格式: { listeners, props }
 * @returns {Promise<void>}
 */
export async function flowSendDialog(options = {}) {
  await buildDialog(() => import('./FlowSendDialog.vue'), options)
}

/**
 * 退回对话框
 * @param options
 *        格式: { listeners, props }
 * @returns {Promise<void>}
 */
export async function flowRejectDialog(options = {}) {
  await buildDialog(() => import('./FlowRejectDialog.vue'), options)
}

/**
 * 撤回对话框
 * @param options
 *        格式: { listeners, props }
 * @returns {Promise<void>}
 */
export async function flowWithdrawDialog(options = {}) {
  await buildDialog(() => import('./FlowWithdrawDialog.vue'), options)
}

export async function flowProgressDialog(options = {}) {
  await buildDialog(() => import('./FlowProgressViewDialog.vue'), options)
}
